package com.wnxy.portal.common.exception;

import com.wnxy.portal.common.result.IResultCode;

/**
 * 自定义业务异常
 */
public class BusinessException extends RuntimeException{

    private IResultCode resultCode;
    public IResultCode getResultCode() {
        return resultCode;
    }

    public BusinessException() {
    }

    public BusinessException(IResultCode resultCode) {
        this.resultCode = resultCode;
    }
}
